package com.bfly.mall.wechat.minipro.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 查询微信退款实体类
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/11 11:12
 */
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class WeChatRefundOrderQuery implements Serializable {

    private static final long serialVersionUID = 5591826887347974321L;

    @XmlElement(name = "appid", required = true)
    private String appId;                    //微信分配的小程序ID

    @XmlElement(name = "mch_id", required = true)
    private String mchId;                    //微信支付分配的商户号

    @XmlElement(name = "nonce_str", required = true)
    private String nonceStr;                //随机字符串，不长于32位。推荐随机数生成算法

    @XmlElement(name = "sign", required = true)
    private String sign;                    //签名

    @XmlElement(name = "refund_id", required = true)
    private String refundId;                //微信订单号查询的优先级是： refund_id > out_refund_no > transaction_id > out_trade_no

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getRefundId() {
        return refundId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }
}